package cn.iocoder.yudao.module.shop.controller.admin.shopbrand.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 商户品牌 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ShopBrandRespVO {

    @Schema(description = "品牌编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("品牌编号")
    private Long id;

    @Schema(description = "品牌名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("品牌名称")
    private String name;

    @Schema(description = "品牌图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("品牌图片")
    private String picUrl;

    @Schema(description = "品牌排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("品牌排序")
    private Integer sort;

    @Schema(description = "品牌简介")
    @ExcelProperty("品牌简介")
    private String subject;

    @Schema(description = "品牌描述", example = "你说的对")
    @ExcelProperty("品牌描述")
    private String description;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "01")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("dc_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "适用的spu规则【simple、complex】", requiredMode = Schema.RequiredMode.REQUIRED, example = "simple")
    @ExcelProperty(value = "适用的spu规则【simple、complex】", converter = DictConvert.class)
    @DictFormat("spuUseType") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String spuUseType;

}